const template = require('art-template');

const path = require('path');

let views = path.join(__dirname, 'views', '3.art');

let html = template(views, {
    arr: [
        {
            name: '陈雨鑫',
            age: 19,
            sex: '男'
        },
        {
            name: '肥龙',
            age: 20,
            sex: '男'
        },
        {
            name: '阿棉',
            age: 19,
            sex: '男'
        },
        {
            name: '阿敏',
            age: 18,
            sex: '女'
        }
    ],
    num: ['一', '二', '三', '四', '五']
});

console.log(html);